import request from '@/utils/request'

export function edit(data) {
  return request({
    url: 'news/edit',
    method: 'post',
    data
  })
}

export function search(data) {
  return request({
    url: 'news/type',
    method: 'post',
    data
  })
}